Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@giphy/js-util

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@giphy/js-util

Shared giphy js utils

  • 1.10.0
  • npm
  • Socket score

Version published
Weekly downloads
88K
increased by19.98%
Maintainers
1
Weekly downloads
 
Created
Source

@giphy/js-util

More coming soon:

getAltText - get the alt text we display for gifs

bestfit - finds image rendition that best fits a given width and height

getBestRendition - get the best rendition object based on a width and height (uses bestfit)

getBestRenditionUrl - get the best rendition url based on a width and height, also factors in webp availability and if you're using video (uses getBestRendition)

getGifHeight - quick way to get the height for a gif based on a provided width

getGifWidth - quick way to get the width for a gif based on a provided height

getSpecificRendition - get a specific rendition but factor in webp, sticker and video

collections (lodash replacements)

  • mapValues (map for objects)
  • take
  • forEach (forEach for objects)
  • without
  • pick

FAQs

Package last updated on 25 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc